package edu.br.activitys;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

import com.example.gym4all.R;

import edu.br.enuns.ShoulderEnum;

public class ShoulderExercisesPage extends Activity {

	@Override
	protected void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		this.setContentView(R.layout.sholder_exercises_page);
		Spinner spinner1 = (Spinner) this.findViewById(R.id.contextChooser1);
		Spinner spinner2 = (Spinner) this.findViewById(R.id.contextChooser2);
		Spinner spinner3 = (Spinner) this.findViewById(R.id.contextChooser3);
		Spinner spinner4 = (Spinner) this.findViewById(R.id.contextChooser4);
		Spinner spinner5 = (Spinner) this.findViewById(R.id.contextChooser5);
		Spinner spinner6 = (Spinner) this.findViewById(R.id.contextChooser6);
		Spinner spinner7 = (Spinner) this.findViewById(R.id.contextChooser7);
		Spinner spinner8 = (Spinner) this.findViewById(R.id.contextChooser8);
		Spinner spinner9 = (Spinner) this.findViewById(R.id.contextChooser9);
		Spinner spinner10 = (Spinner) this.findViewById(R.id.contextChooser10);
		spinner2.setEnabled(false);
		spinner3.setEnabled(false);
		spinner4.setEnabled(false);
		spinner5.setEnabled(false);
		spinner6.setEnabled(false);
		spinner7.setEnabled(false);
		spinner8.setEnabled(false);
		spinner9.setEnabled(false);
		spinner10.setEnabled(false);
		ArrayAdapter<ShoulderEnum> adapterSholderList = new ArrayAdapter<ShoulderEnum>(
				this, android.R.layout.simple_spinner_dropdown_item,
				ShoulderEnum.values());
		spinner1.setAdapter(adapterSholderList);
		// spinner1.setOnItemClickListener(new OnExerciseSelectedListener());
		// spinner1.getSelectedItem().toString()
	}

	public class OnExerciseSelectedListener implements OnItemSelectedListener {

		@Override
		public void onItemSelected(AdapterView<?> parent, View view,
				int position, long id) {
		}

		@Override
		public void onNothingSelected(AdapterView<?> parent) {
			// nothing
		}
	}
}